package cn.school.service;

import cn.school.dao.AdminDao;
import cn.school.entity.Admin;
import org.apache.ibatis.session.SqlSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author oldliu
 * @since 1.0
 */
@Service
public class AdminService {
    @Autowired
   private AdminDao dao;
    public Admin login(String u, String p) {
            return dao.login(u,p);

    }
}
